<?php
$session=$this->session;

?>
<!-- 通栏-->
<div class="detailContent-title"><span class="local">当前位置：首页&nbsp;>&nbsp;个人会员注册>&nbsp;<?php
    if($session['type_p_vasn']==1){
        echo '尊最会员';
    } elseif ($session['type_p_vasn']==2){
        echo '高级会员';
    }elseif ($session['type_p_vasn']==3){
        echo '普善会员';
    }elseif ($session['type_p_vasn']==4){
        echo '晋学会员';
    }

?></span></div>
<div class="tonglan memberrg black">
<div class="form">
    <?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'profiles-form',
    'enableAjaxValidation'=>false,
    'htmlOptions'=>array('enctype'=>'multipart/form-data')
)); ?>

    <div class="memberrgdetail">
        <table width="<?php echo isset($table_width)&&$table_width>600 ? $table_width : 800; ?>" border="0" align="center" cellpadding="8" cellspacing="0" class="table">
            <tr>
                <td height="64" colspan="4" align="center"><span class="jbxx"><?php if(isset($title) && !empty($title)) echo $title;?></span></td>
            </tr>
            <tr>
                <td colspan="4"><div class="tis"> ★ 带有&quot;<span class="f00">*</span>&quot;的项目必须填写,并确保您在基本信息中输入的Email地址有效。<br />
                    ★ 如果愿意公开的信息可以在□ 打勾'√'（公开是指对其他注册会员公开，而非注册会员无法浏览。） </div></td>
            </tr>
            <tr>
                <td colspan="4" align="right">
                    <p class="note" style="font-size: 20px;color: #ff0000;float: left;margin-left: 300px;">
                        <?php if(is_array($session['error']) && !empty($session['error'][0])) echo $session['error'][0];?>
                    </p>
                </td>
            </tr>
            <?php
            if(isset($items) && !empty($items)) foreach($items as $item){
                echo '<tr>';
                $this->renderPartial('input',array(
                    'type'=>$item['type'],
                    'require'=>$item['require'],
                    'label'=>$item['label'],
                    'key'=>$item['key'],
                    'class'=>$item['class'] ,
                    'open'=>$item['open'] ,
                    'msg'=>isset($item['msg']) ? $item['msg'] : '',
                    'range'=>isset($item['range']) ? $item['range'] : '',
                ));
                echo '</tr>';
            }
            ?>
        </table>
        <div id="but" class="cen paddingbotton80 paddingtop50">
            <span><?php echo CHtml::submitButton('',array('id'=>'topstep','style'=>'border: 0 none;font-size:0;','name'=>'setup',
                'value'=>(intval($session['setup'])-1)>=1 ? (intval($session['setup'])-1) : 1)); ?></span>
            <span><?php
                $bt_id= $session['setup']==6 ? 'tjsh' : 'nextstep';
                echo CHtml::submitButton('',array('id'=>$bt_id,'style'=>'border: 0 none;font-size:0;','name'=>'setup',
                'value'=>(intval($session['setup'])+1)>=2 ? (intval($session['setup'])+1) : 2)); ?></span>
        </div>
        <div class="clear"></div>
    </div>

    <?php $this->endWidget(); ?>
</div><!-- form -->
<div class="clear"></div>
</div>
<?php echo isset($js) ? $js : '';?>